<?php
/*
 * form attributes
 */ 
$notExistFormAttributes = array('name' => 'accountNotExistForm','id'=>'accountNotExistForm');
$existFormAttributes = array('name' => 'accountExistForm','id'=>'accountExistForm');

$sumbitWhichForm = 'accountNotExistForm';
 /*
  * postal code input
  */ 
$postalCode = array(
	'name'	=> 'postalCode',
	'value'	=>	@$postalCode,
	'type'	=> 'hidden'
);

/*
 * phone input
 */ 
$phone = array(
	'name'	=>	'phone',
	'value'	=>	@$phone,
	'type'	=> 'hidden'
);

/*
 * email inputs
 */

$email = array(
	'name'	=> 'loginEmail',
	'value' => @$loginEmail,
	'type'	=> 'hidden'
);

/*
 * entity types options
 */

$entityTypeOptions = $this->config->item('entity_type', 'adsense');
$entityType = array(
	'name'	=> 'entityType',
	'value' => @$entityType,
	'type'	=> 'hidden'
);

/*
 * users preferred locale options
 */

$usersPreferredLocaleOptions = $this->config->item('users_preferred_locale', 'adsense');
$usersPreferredLocale = array(
	'name'	=>	'usersPreferredLocale',
	'value' => 	@$usersPreferredLocale,
	'type'	=> 'hidden'
);

/*
 * website locale options
 */

$websiteLocaleOptions = $this->config->item('website_locale', 'adsense');
$websiteLocale = array(
	'name'	=>	'websiteLocale',
	'value' => 	@$websiteLocale,
	'type'	=> 'hidden'
);

/*
 * product code options
 */
 $productCodeOptions = $this->config->item('product_code', 'adsense');
 $productCode = array(
 	'name'	=>	'productCode',
	'value' => 	@$productCode,
	'type'	=> 'hidden'
 ); 
/*
 * website URL input
 */
$websiteUrl = array(
	'name'	=>	'websiteUrl',
	'value'	=>	@$websiteUrl,
	'type'	=> 'hidden'
);
  
$developerUrl = array(
	'name'	=>	'developerUrl',
	'value'	=>	@$developerUrl,
	'type'	=> 'hidden'
);

$emailPromotionPreferencesOptions = array('true'=>'是','false'=>'否');
$emailPromotionPreferences = array(
	'name'	=> 'emailPromotionPreferences',
	'id'	=> 'emailPromotionPreferences',
	'value' => @$emailPromotionPreferences,
	'type'	=> 'hidden'
);

$this->adgeek_view->header();

?>
<script language="javascript" type="text/javascript" src="/js/register_form.js"></script>

<div id="content">
   		<div class="mainTitle">
        	<h3><span>確認</span> Google AdSense表單</h3>
            <!--<a href="how_1.html" title="加入會員" class="btn btn_gray">加入會員</a>-->
            <div class="nav">
           	  <div class="breadCrumb">
                	<a href="/" title="首頁">首頁</a>><a href="/account/register_form" title="填寫 Google AdSense表單">填寫 Google AdSense表單</a>><a href="#" title="確認資訊">確認資訊</a>
                </div>
                <ul>
                	<li class="hide">
                    	<span>填寫表單</span>
                        <img src="/images/nav/mainTitle_nav_btnBg_1.png" alt="" />
                    </li>
                    <li class="show">
                    	<span>確認資料</span>
                        <img src="/images/nav/mainTitle_nav_btnBg_2.png" alt="" />
                    </li>
                    <li class="hide">
                    	<span>註冊成功</span>
                        <img src="/images/nav/mainTitle_nav_btnBg_3.png" alt="" />
                   	</li>
                </ul>
            </div>
        </div>
        <div class="menu">
        	<ul>
            	<li><a href="register_form" title="註冊">填寫表單</a></li>
                <li class="active">確認資訊</li>
                <li>註冊成功</li>
            </ul>
        </div>
        <div class="main">
        	<div class="line">
        		<span class="subTitle">
        			即將把您的Google Adsense帳號與AdGeek作聯結
				</span>
        	</div>
            <div class="apply">
            	<ul class="first">
                	<li><span>*</span>請確認以下資訊正確</li>
                </ul>
                
                <div id="accountNotExistDiv">
                	<?php echo form_open('account/create',$notExistFormAttributes); ?>
                <div class="tit">
                	<span class="subTitle">基本資訊</span>
                </div>
                <ul> 
                    <li><span>*</span>使用者偏好語言：</li>
                    <li class="box">
                    	<?php echo $usersPreferredLocaleOptions[$usersPreferredLocale['value']].form_input($usersPreferredLocale);	?>
                    </li>
                    <li class="error">
                    	<?php echo form_error('usersPreferredLocale'); ?>
                    </li>
                </ul>
                <div class="tit">
                	<span class="subTitle">網站資訊</span>
                </div>
                <ul>
                    <li><span>*</span>網址：</li>
                    <li class="box">
                    	<?php echo $websiteUrl['value'].form_input($websiteUrl); ?>
                    </li>
                </ul>
                <ul>
                    <li><span>*</span>網站內容語言：</li>
                    <li class="box">
                    	<?php echo $websiteLocaleOptions[$websiteLocale['value']].form_input($websiteLocale); ?>
                    </li>
                    <li class="error">
                    	<?php echo form_error('websiteLocale'); ?>
                    </li>
                </ul>
                <ul>
                    <li><span>*</span>欲申請廣告類型：</li>
                    <li class="box">
                    	<?php echo $productCodeOptions[$productCode['value']].form_input($productCode); ?>
                    </li>
                    <li class="error">
                    	<?php echo form_error('productCode'); ?>
                    </li>
                </ul>
                
                	<?php echo form_close(); ?>
                </div>
            </div>
            <div class="legal">
            	<ul>
                    <li class="confirm_submit">
                    	<a href="register_form" title="上一步" class="btn btn_blue">上一步</a>
                    	<a href="javascript:;"  onclick="document.getElementById('<?php echo $sumbitWhichForm; ?>').submit(); return false;" title="確認" class="btn btn_blue">確認</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<?php
$this->adgeek_view->footer();
?>